function [adjMatrix,nodeNames] = getDAG()
nodeNames{1} = 'GoodStudent';
nodeNames{2} = 'Age';
nodeNames{3} = 'SocioEcon';
nodeNames{4} = 'RiskAversion';
nodeNames{5} = 'VehicleYear';
nodeNames{6} = 'ThisCarDam';
nodeNames{7} = 'RuggedAuto';
nodeNames{8} = 'Accident';
nodeNames{9} = 'MakeModel';
nodeNames{10} = 'DrivQuality';
nodeNames{11} = 'Mileage';
nodeNames{12} = 'Antilock';
nodeNames{13} = 'DrivingSkill';
nodeNames{14} = 'SeniorTrain';
nodeNames{15} = 'ThisCarCost';
nodeNames{16} = 'Theft';
nodeNames{17} = 'CarValue';
nodeNames{18} = 'HomeBase';
nodeNames{19} = 'AntiTheft';
nodeNames{20} = 'PropCost';
nodeNames{21} = 'OtherCarCost';
nodeNames{22} = 'OtherCar';
nodeNames{23} = 'MedCost';
nodeNames{24} = 'Cushioning';
nodeNames{25} = 'Airbag';
nodeNames{26} = 'ILiCost';
nodeNames{27} = 'DrivHist';
adjMatrix = zeros(length(nodeNames));
adjMatrix(2,1) = 1;
adjMatrix(3,1) = 1;
adjMatrix(2,3) = 1;
adjMatrix(2,4) = 1;
adjMatrix(3,4) = 1;
adjMatrix(3,5) = 1;
adjMatrix(4,5) = 1;
adjMatrix(7,6) = 1;
adjMatrix(8,6) = 1;
adjMatrix(5,7) = 1;
adjMatrix(9,7) = 1;
adjMatrix(10,8) = 1;
adjMatrix(11,8) = 1;
adjMatrix(12,8) = 1;
adjMatrix(3,9) = 1;
adjMatrix(4,9) = 1;
adjMatrix(4,10) = 1;
adjMatrix(13,10) = 1;
adjMatrix(5,12) = 1;
adjMatrix(9,12) = 1;
adjMatrix(2,13) = 1;
adjMatrix(14,13) = 1;
adjMatrix(2,14) = 1;
adjMatrix(4,14) = 1;
adjMatrix(6,15) = 1;
adjMatrix(16,15) = 1;
adjMatrix(17,15) = 1;
adjMatrix(17,16) = 1;
adjMatrix(18,16) = 1;
adjMatrix(19,16) = 1;
adjMatrix(5,17) = 1;
adjMatrix(9,17) = 1;
adjMatrix(11,17) = 1;
adjMatrix(3,18) = 1;
adjMatrix(4,18) = 1;
adjMatrix(3,19) = 1;
adjMatrix(4,19) = 1;
adjMatrix(15,20) = 1;
adjMatrix(21,20) = 1;
adjMatrix(7,21) = 1;
adjMatrix(8,21) = 1;
adjMatrix(3,22) = 1;
adjMatrix(2,23) = 1;
adjMatrix(8,23) = 1;
adjMatrix(24,23) = 1;
adjMatrix(7,24) = 1;
adjMatrix(25,24) = 1;
adjMatrix(5,25) = 1;
adjMatrix(9,25) = 1;
adjMatrix(8,26) = 1;
adjMatrix(4,27) = 1;
adjMatrix(13,27) = 1;
P = topologicalPermutation(adjMatrix);
adjMatrix = adjMatrix(P,P);
nodeNames = nodeNames(P);
